#ifndef BG_STAR_H
#define BG_STAR_H
#include <vector>
#include <SDL3/SDL.h>
#include <glm/glm.hpp>
#include "../core/node.h"
class bg_star : public node{
protected:
    std::vector<glm::vec2> star_far;
    std::vector<glm::vec2> star_mid;
    std::vector<glm::vec2> star_near;
    float scale_far = 0.2f;
    float scale_mid  = 0.5f;
    float scale_near = 0.7f;
    SDL_FColor color_far = {255, 255, 255, 255};
    SDL_FColor color_mid = {255, 255, 255, 255};
    SDL_FColor color_near = {255, 255, 255, 255};
    float time_ = 0.0f;
    int num_ = 1000;
public:
    static bg_star* createBgStar(node* parent,int num,float scale_far,float scale_mid,float scale_near);
    virtual void update(float dt) override;
    virtual void render() override;
};

#endif